package com.sky.module.system.loginlog.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author
 * @date 2023/3/8 20:53
 **/
@TableName("t_login_log")
@Data
public class LoginLog {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String username;
    // ip地址
    private String ipaddr;

    private Integer status;  // 登录状态
    private String msg;
    private Date accessTime;
    private Date createTime;
    private Date updateTime;
    private String userAgent;
    // 用于做登录日志数据展示
    @TableField(exist = false)
    private Long userId;
}
